<%--
  Created by IntelliJ IDEA.
  User: zhuang
  Date: 2017/12/5
  Time: 上午1:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Login</title>
</head>
<body>
<form method="POST" action="/login.do">
    Username:<input type="text" name="username"/>
    Password:<input type="password" name="password"/>
    <input type="submit" value="Login">
    <script>
        if (location.href.indexOf('#') > -1) {
            alert('Wrong password!');
        }
        if (location.href.indexOf('?') > -1) {
            alert('Logout successfully!');
        }
    </script>
</form>
</body>
</html>
